<?php
/**
 * The sidebar containing the main widget area.
 *
 * @package EverBox
 */
?>
<div id="secondary" class="right-column">
	<div class="secondary-toggle"><i class="icon-angle-left"></i></div>
	<div class="sidebar" role="complementary">
		<?php
			if(is_singular() && is_active_sidebar( 'sidebar-alter' )) {
				dynamic_sidebar( 'sidebar-alter' );
			} else {
				dynamic_sidebar( 'sidebar-default' );
			}
		?>
		<div class="site-footer">
		<?php
			wp_nav_menu( array(
				'theme_location' => 'footer',
				'container' => 'div',
				'container_class' => 'footer-links',
				'fallback_cb' => ''
			) );
		?>
		
		<?php if(get_theme_mod( 'everbox_credit', 1 )) : ?>
			<div class="site-info">
			<?php  
				//printf('Powered by WordPress. Theme by <a href="%1$s" target="_blank">moyu</a>', esc_url( 'http://www.20theme.com' ));
			?>
			</div>
			<!-- END .site-info -->
		<?php endif; 
                
                        
                ?>

		</div>
		<!-- END .site-footer -->
	</div>
	<!-- END .sidebar -->
</div>
<!-- END #secondary -->
<script>
    $(function(){
        var colors = ['#C9C','#6CC','#F99','#E6CC6E','#37A7FF','#6C9','#F96','#B0D686','#B37333','#FF6600','#003377'];
        $('.tagcloud a').each(function(i){
            $(this).css({background:colors[parseInt(10*Math.random())]});
            str = $(this).html();
            num = $(this).attr('title');
            str = str+'('+num+')';
        })
        $('i.fa-weixin').mouseover(function(){
            $('#author-blog-inter .tolk img').css('display','block');
        }).mouseout(function(){
            $('#author-blog-inter .tolk img').css('display','none');
        });
    });
</script>